package com.ctshk.rpc.insurance.req.tp;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class ApplicantInfo implements Serializable {

    @NotNull(message = "年齡不能为空")
    @ApiModelProperty(value = "年齡")
    private String age;
    @NotNull(message = "出生日期不能为空")
    @ApiModelProperty(value = "出生日期")
    private String birthDate;
    @NotNull(message = "電郵地址不能为空")
    @ApiModelProperty(value = "電郵地址")
    private String email;
    @NotNull(message = "證件號碼不能为空")
    @ApiModelProperty(value = "證件號碼")
    private String identifyNumber;
    @NotNull(message = "證件類型不能为空")
    @ApiModelProperty(value = "證件類型")
    private String identifyType;
    @NotNull(message = "英文姓名不能为空")
    @ApiModelProperty(value = "英文姓名")
    private String insuredEName;
    @NotNull(message = "中文姓名不能为空")
    @ApiModelProperty(value = "中文姓名")
    private String insuredName;
    @NotNull(message = "聯絡電話不能为空")
    @Size(min = 4,message = "联络电话最小值为4")
    @ApiModelProperty(value = "聯絡電話")
    private String mobilePhone;
    @NotNull(message = "性別不能为空")
    @ApiModelProperty(value = "性別:1男/2女")
    private String sex;

}
